package com.kate.mall.bff.wx;

import com.baomidou.mybatisplus.autoconfigure.IdentifierGeneratorAutoConfiguration;
import com.kate.mall.log.annotation.EnableLogging;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, IdentifierGeneratorAutoConfiguration.class})
@EnableDiscoveryClient
@ServletComponentScan(basePackages = {"com.kate.mall.common"})
@ComponentScan(basePackages = {"com.kate.mall.bff.wx","com.kate.mall.common"})
@EnableFeignClients
@EnableLogging
@EnableCaching
public class BffMallWxApplication {

    public static void main(String[] args) {
        SpringApplication.run(BffMallWxApplication.class, args);
    }

}
